#-*- coding: Utf-8 -*-
from django import template

register = template.Library()

@register.filter
def is_subpath_of(path1, path2):
    return str(path1).startswith(str(path1))
